package com.xu.cloud.sample.api.apis;

import com.xu.cloud.sample.api.dto.EncryptDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * encrypt api
 *
 * @author xuguan
 * @since 2025/3/7
 */
@Api(tags = "加解密示例接口")
@FeignClient(name = "xu-cloud-sample-api", url = "http://localhost:8080", path = "/api")
public interface EncryptApi {

    @ApiOperation(value = "加解密示例方法")
    @PostMapping("/encrypt")
    EncryptDto encrypt(@RequestBody EncryptDto dto);
}
